<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{$username}
<br>
{$arr1.0}
<br>
{$arr2['a']}
<h1>数组遍历</h1>
{foreach $arr2 as $itmen}
{if $item==2}
数字是2
{else}
{$item}
{/if}
{/foreach}

<h1>数组遍历键和值</h1>
{foreach $arr2 as $key=>$itmen}
{$key}===={$item}
{/foreach}
</body>
</html>